<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title>我的问题</title>
</head>
<body>
<h2>我的问题</h2>
<a href="${pageContext.request.contextPath}/expert/ask">提问</a>
<br><br>
<c:forEach var="answer" items="${answers}">
    <div style="border: 1px solid #ccc; padding: 10px; margin-bottom: 10px;">
        <h3>问题：${answer.question}</h3>
        <p>提问时间：${answer.createTime}</p>
        <c:if test="${answer.answer != null}">
            <h4>回答：${answer.answer}</h4>
            <p>回答者：${answer.expertId}</p>
            <p>回答时间：${answer.answerTime}</p>
        </c:if>
        <br>
        <a href="${pageContext.request.contextPath}/expert/questions">查看所有问题</a>
    </div>
</c:forEach>
</body>
</html>